package com.rn.gypsophila.rabbitmq;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.context.annotation.Bean;

/**
 * Description: RabbitMQ配置
 *
 * @author 然诺
 * @date 2019/08/07
 */
public abstract class AbstractRabbitmqConfig {

    /**
     * 消息JSON转换器
     */
    @Bean
    public Jackson2JsonMessageConverter jackson2JsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }

}
